package com.qcby.consumer.login.controller;

import com.heaboy.service.login.IloginService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName LoginController
 * @Description : controller
 * @Author : R
 * @Date : 2020/3/6 11:33
*/
@Controller
@RequestMapping("login")
public class LoginController {

    @Reference
    private IloginService loginService;

    @RequestMapping
    @ResponseBody
    public Boolean index(){
        return loginService.login("哈喽","12345");
    }
}
